<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<style type="text/css">
html { font-family:"微软雅黑", "宋体", Arial, Helvetica, sans-serif;}
h1 {
	color: #333;
	margin-bottom:50px;
}
table {
	border-collapse: collapse;
	border: none;
	width:100%;
	color:#333;
	table-layout:fixed;
}
td {
	border: solid #666 1px;
	line-height:18px;
	font-size:14px;
	padding:2px 5px;
}
thead td { background:#45b97c ; font-weight:bold; color:#111;}
.page { width:1000px; margin:0 auto;}
#dayinDiv { margin:30px 0;}
#dayinDiv input { width:200px; height:30px;}
.zyTop { background:none; border:0;  padding:0; margin:0;}
.zyTop div { width:500px;}
.zyTop div p { font-size:12px; height:24px; line-height:24px; text-align:left;}
.zyTable td { border:none;}
</style>
<style type="text/css" media="print">
@media print {

/* .table-break {
	page-break-before : always;
} */
.noprint {
	display: none
}
thead {
	display: table-header-group
}
tr {
	page-break-inside: avoid
}
.page { width:auto; margin:0 auto;}
#dayinDiv { display:none;}
}
</style>
<SCRIPT language=javascript>
function printpr()   //预览函数
{
document.all("qingkongyema").click();//打印之前去掉页眉，页脚
document.all("dayinDiv").style.display="none"; //打印之前先隐藏不想打印输出的元素（此例中隐藏“打印”和“打印预览”两个按钮）
var OLECMDID = 7;
var PROMPT = 1; 
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser); 
WebBrowser1.ExecWB(OLECMDID, PROMPT);
WebBrowser1.outerHTML = "";
document.all("dayinDiv").style.display="";//打印之后将该元素显示出来（显示出“打印”和“打印预览”两个按钮，方便别人下次打印）
} 
function printTure()   //打印函数
{
    document.all('qingkongyema').click();//同上
    document.all("dayinDiv").style.display="none";//同上
    window.print();
    document.all("dayinDiv").style.display="";
}
function doPage()
{
    layLoading.style.display = "none";//同上
}
</SCRIPT>
<title></title>
</head>
<body>
<div class="page">
<br/>
<br/>
<br/>
<div align="center"><h1>东易装饰工程有限公司材料单</h1></div>
	<div align="center" class="table-break">
		<table  cellpadding="2" cellspacing="0">
				<tr>
					<td width="5%" rowspan="${num}" align="center" bgcolor="#45b97c">客<br/>户<br/>自<br/>购<br/>材<br/>料</td>
					<td width="5%" align="center" height="50px" bgcolor="#45b97c">序号</td>
					<td width="15%" align="center" height="50px" bgcolor="#45b97c">材料名称</td>
					<td width="10%" align="center" height="50px" bgcolor="#45b97c">单位</td>
					<td width="10%" align="center" height="50px" bgcolor="#45b97c">品牌</td>
					<td width="10%" align="center" height="50px" bgcolor="#45b97c">材料型号</td>
					<td width="10%" align="center" height="50px" bgcolor="#45b97c">饰面</td>
					<td width="10%" align="center" height="50px" bgcolor="#45b97c">客户报价</td>
					<td width="8%" align="center" height="50px" bgcolor="#45b97c">数量</td>
					<td width="8%" align="center" height="50px" bgcolor="#45b97c">小计</td>
					<td width="10%" align="center" height="50px" bgcolor="#45b97c">产地</td>
				</tr>		
			<c:forEach  items="${list_b_T_Ufp_EngineerMaterial}" var="b_T_Ufp_EngineerMaterial" varStatus="t">
				<tr>
					<td width="5%" align="center">${t.count}</td>
					<td width="15%" align="center">${b_T_Ufp_EngineerMaterial.engineeringName}</td>
					<td width="10%" align="center">${b_T_Ufp_EngineerMaterial.unit}</td>
					<td width="10%" align="center">${b_T_Ufp_EngineerMaterial.materialBrand}</td>
					<td width="10%" align="center">${b_T_Ufp_EngineerMaterial.materialModel}</td>
					<td width="10%" align="center">${b_T_Ufp_EngineerMaterial.finishes}</td>
					<td width="10%" align="center">${b_T_Ufp_EngineerMaterial.angebotspreis}</td>
					<td width="8%" align="center">${b_T_Ufp_EngineerMaterial.quantity}</td>
					<td width="8%" align="center">${b_T_Ufp_EngineerMaterial.angebotspreis * b_T_Ufp_EngineerMaterial.quantity}</td>
					<td width="10%" align="center">${b_T_Ufp_EngineerMaterial.producter}</td>
				</tr>	
			</c:forEach>
				<tr>
				      <td colspan="3" align="center" > 合计金额：</td>
				      <td colspan="8" align="center" >￥${materialtotal}</td>
		    	</tr>
		   		 <tr>
				      <td colspan="3" align="center" > 工程参考金额：</td>
				      <td colspan="8" align="center" >￥${materialtotal}</td>
	  		 	 </tr>	
		</table>
		<br/>
		<table>
			    <tr>
			      <td style="width:16%;"> 客户签字：</td>
			      <td style="width:16%;"> </td>
			      <td style="width:16%;"> 设计师签字：</td>
			      <td style="width:16%;"> </td>
			      <td style="width:16%;"> 审核人签字：</td>
			      <td style="width:16%;"> </td>
			    </tr>
			    <tr>
			      <td>附加说明：</td>
			      <td colspan="5"><input type="text" value="本报价为主材报价"  style="border:0;" size="125"/></td>
			    </tr>
	  </table>
	  </div>
</div>
</body>
</html>
